import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
// import layout from '@/components/layout/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('@/components/login/login'),
      hidden: true
    },
    {
      path: '/',
      name: 'layout',
      component: () => import('@/components/layout/Layout'),
      redirect: 'empEntry',
      children: [
        {
          path: 'empEntry',
          component: () => import('@/components/appMain/views/empEntry'),
          name: 'empEntry',
          // meta: { title: 'employeeEntry', icon: routeIcon.indexImg, noCache: true, affix: true }
        }
      ]
    },
    {
      path: '/',
      name: 'index',
      component: index
    },

  ]
})
